package com.open.capacity.user.model.desk;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.List;

@Data
public class Tile {

    private String title;
    private List<Title> data;

    @Data
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    public static class Title {

        public Title(Integer _x, Integer _y, Integer _w, Integer _h, String _app, String _title, String _i, Object _params, String _hash) {
            this.x = _x;
            this.y = _y;
            this.w = _w;
            this.h = _h;
            this.app = _app;
            this.title = _title;
            this.i = _i;
            this.params = _params;
            this.hash = _hash;
        }

        private Integer x;
        private Integer y;
        private Integer w;
        private Integer h;
        private String app;
        private String title;
        private String i;
        private Object params;
        private String hash;

    }
}
